// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class Collector266 : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<Collector266, MasterDbContextLocator>
    {

        public string DTUID { get; set; }
        public string dtuAlias { get; set; }
        public bool? BOnline { get; set; }
        public string CurDevServer { get; set; }
        public string DestDevServer { get; set; }
        public DateTime? LastCheckDt { get; set; }
        public DateTime? DATECLOCK { get; set; }
        public int? SOURCE { get; set; }
        public DateTime? ltOnTime { get; set; }
        public DateTime? ltOffTime { get; set; }
        public int? VERSION { get; set; }
        public string ALARMStr { get; set; }
        public int? ALARM { get; set; }
        public bool? BMainsFail { get; set; }
        public bool? BBattVoltLow { get; set; }
        public bool? BGenCheat { get; set; }
        public bool? BMainsDetectFault { get; set; }
        public bool? BBattDetectFault { get; set; }
        public bool? BGenVoltLow { get; set; }
        public bool? BGenVoltHigh { get; set; }
        public bool? B433CommFault { get; set; }
        public int? AreaId { get; set; }
        public string AreaCode { get; set; }
        public string AreaName { get; set; }
        public string CompanyCode { get; set; }
        public string CompanyName { get; set; }
        public string PrjCode { get; set; }
        public string PrjName { get; set; }
        public string DevIdOneNet { get; set; }
        public string UpgradeProgress { get; set; }
    
        public void Configure(EntityTypeBuilder<Collector266> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.HasKey(e => e.DTUID)
                    .HasName("PK__Collecto__FCCB400DE82EA0F2");

                entityBuilder.Property(e => e.DTUID).HasMaxLength(50);

                entityBuilder.Property(e => e.ALARMStr).HasMaxLength(500);

                entityBuilder.Property(e => e.AreaCode).HasMaxLength(50);

                entityBuilder.Property(e => e.AreaName).HasMaxLength(50);

                entityBuilder.Property(e => e.CompanyCode).HasMaxLength(50);

                entityBuilder.Property(e => e.CompanyName).HasMaxLength(200);

                entityBuilder.Property(e => e.CurDevServer).HasMaxLength(50);

                entityBuilder.Property(e => e.DATECLOCK).HasColumnType("datetime");

                entityBuilder.Property(e => e.DestDevServer).HasMaxLength(50);

                entityBuilder.Property(e => e.DevIdOneNet).HasMaxLength(50);

                entityBuilder.Property(e => e.LastCheckDt).HasColumnType("datetime");

                entityBuilder.Property(e => e.PrjCode).HasMaxLength(50);

                entityBuilder.Property(e => e.PrjName).HasMaxLength(100);

                entityBuilder.Property(e => e.UpgradeProgress).HasMaxLength(200);

                entityBuilder.Property(e => e.dtuAlias).HasMaxLength(50);

                entityBuilder.Property(e => e.ltOffTime).HasColumnType("datetime");

                entityBuilder.Property(e => e.ltOnTime).HasColumnType("datetime");
        }

    }
}

